import instance from "@/utils/http";

//获取商品信息
export const getDetailList = (id) => {
    return instance.get('/goods',{
        params:{
            id
        }
    })
}

//获取热榜商品信息
export const getHotDetail = ({id,type,limit = 3}) => {
    return instance.get('/goods/hot',{
        params:{
            id,
            type,
            limit
        }
    })
}